package com.cntcdt.api.service.impl;

import java.util.List;

import com.cntcdt.api.db.dao.ConsociationCompanyDivideDao;
import com.cntcdt.api.db.model.ConsociationCompanyDivideModel;
import com.cntcdt.api.service.ConsociationCompanyDivideService;

public class ConsociationCompanyDivideServiceImpl implements ConsociationCompanyDivideService {

	@Override
	public ConsociationCompanyDivideModel findByConsociationCompanyId(Integer consociationCompanyId) {
		return ConsociationCompanyDivideDao.getInstance().findByConsociationCompanyId(consociationCompanyId);
	}

	@Override
	public ConsociationCompanyDivideModel findById(Integer id) {
		return ConsociationCompanyDivideDao.getInstance().findByPrimaryKey(id);
	}

	@Override
	public List<ConsociationCompanyDivideModel> findByPage(int sortTime) {
		return ConsociationCompanyDivideDao.getInstance().findByPage(sortTime);
	}

}
